package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 问卷调查回复
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_survey_answer")
public class SurveyAnswer extends Model<SurveyAnswer> {

    private static final long serialVersionUID = 1L;


	@TableId("id")
	private Long id;
    /**
     * 外键spd_survey.id
     */

	@TableField("survey_id")
	private Long surveyId;
    /**
     * 回答用户id
     */

	@TableField("answer_user_id")
	private Long answerUserId;
    /**
     * 回答数据数组
     */

	@TableField("data")
	private String data;
    /**
     * 答题时间
     */

	@TableField("answer_time")
	private Date answerTime;


	public Long getId() {
		return id;
	}

	public SurveyAnswer setId(Long id) {
		this.id = id;
		return this;
	}

	public Long getSurveyId() {
		return surveyId;
	}

	public SurveyAnswer setSurveyId(Long surveyId) {
		this.surveyId = surveyId;
		return this;
	}

	public Long getAnswerUserId() {
		return answerUserId;
	}

	public SurveyAnswer setAnswerUserId(Long answerUserId) {
		this.answerUserId = answerUserId;
		return this;
	}

	public String getData() {
		return data;
	}

	public SurveyAnswer setData(String data) {
		this.data = data;
		return this;
	}

	public Date getAnswerTime() {
		return answerTime;
	}

	public SurveyAnswer setAnswerTime(Date answerTime) {
		this.answerTime = answerTime;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}